<?php
Class Formapago extends AppModel {
	
	var $name = 'Formapago';
	
	var $hasOne = array 
	(
		'Cheque' => array 
			(
				'className'=>'Cheque',
					'conditions'=> '',
					'order'=> '',
					'limit'=>'',
					'foreignKey' => 'formapagos_id',
					'dependent' => false,
					'exclusive' => false,
					'finderQuery' => '',
					'fields'     => '',
					'offset'     => '',
					'counterQuery' => ''
			),
		'Efectivo' => array 
			(
				'className'=>'Efectivo',
					'conditions'=> '',
					'order'=> '',
					'limit'=>'',
					'foreignKey' => 'formapagos_id',
					'dependent' => false,
					'exclusive' => false,
					'finderQuery' => '',
					'fields'     => '',
					'offset'     => '',
					'counterQuery' => ''
			),
		'Tarjeta' => array 
			(
				'className'=>'Tarjeta',
					'conditions'=> '',
					'order'=> '',
					'limit'=>'',
					'foreignKey' => 'formapagos_id',
					'dependent' => false,
					'exclusive' => false,
					'finderQuery' => '',
					'fields'     => '',
					'offset'     => '',
					'counterQuery' => ''
			)
	);
	
	//Validaciones de los campos	
	var $validate = array
	(
		'nombre' => '/^[a-zA-Z\s]{4,30}$/i',
		//'precio_sugerido' => '/^[0-9]{0,7}\.[0-9]{0,2}$|^[0-9]{0,7}$/i'
	);
}
?>
